class Base(object):
    def test(self):
        print("----Base")

# A B 都重写test方法
class A(Base):
    def test(self):
        print("-----A")


class B(Base):
    def test(self):
        print("-----B")


class C(A, B):
    pass


c = C()
c.test() # 输出 -----A  以继承顺序为准
print(
    C.__mro__)  # 输出 (<class '__main__.C'>, <class '__main__.A'>, <class '__main__.B'>, <class '__main__.Base'>, <class 'object'>)
